package com.iespring.controller.admin.region;

import com.iespring.bean.common.BaseRespVo;
import com.iespring.bean.common.CommonData;
import com.iespring.service.admin.region.RegionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author weigwen
 * @Description:
 * @Date 2022/12/28 20:59
 */

@RestController
@RequestMapping("admin")
public class RegionController {
    @Resource
    private RegionService regionService;

    @GetMapping("region/list")
    public BaseRespVo regionList() {
        CommonData commonData = regionService.regionList();
//        CommonData commonData2 = regionService.regionList2();
        return BaseRespVo.ok(commonData);
    }

}
